package com.pignest.hotel.beans;

import java.util.HashSet;
import java.util.Set;

import com.pignest.hotel.annotation.Bean;
import com.pignest.hotel.beans.global.BaseBean;


@Bean("物品")
@SuppressWarnings("unchecked")
public class TbGoods extends BaseBean {
	private static final long serialVersionUID = -346006750607207370L;
	
	private String name;
	private int price;
	private int count;
	private String type;
	private Set tbLiveGoodsBorrows = new HashSet(0);

	public TbGoods() {
	}
	
	public TbGoods(String name, int price, String type) {
		this.name = name;
		this.price = price;
		this.type = type;
		this.count = 1000;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPrice() {
		return this.price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getCount() {
		return this.count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Set getTbLiveGoodsBorrows() {
		return this.tbLiveGoodsBorrows;
	}

	public void setTbLiveGoodsBorrows(Set tbLiveGoodsBorrows) {
		this.tbLiveGoodsBorrows = tbLiveGoodsBorrows;
	}

	@Override
	public String toSimpleString() {
		return concat(name, String.valueOf(price));
	}
}